<?php

class CHCLabels extends AbstractHCObject
{
    private $m_oItems;
    
    
    public function __construct()
    {
        parent::__construct();
        $this->m_Items = new CHCLabelsItems();
    }
    
    
    public function addItem($psHTML, $psStyle)
    {
        $this->m_oItems->setHTML($psHTML);
        $this->m_oItems->setStyle($psStyle);
    }
    
	/**
     * Shared CSS styles for all labels. Defaults to:
	 * array
	 * (
     *  	'color' => '#3E576F',
     *  	'font' => '12px '"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif'
     * );
     * 
     * @param $pasArray
     */
    public function setStyle($pasArray)
    {
      if (CSDebug::assertArray($pasArray)) return false;
      
      $this->setParam('style', $pasArray);
    }
}

?>